#!/bin/sh
[ `whoami` != "root" ]&&echo "Please run of root"&&exit
if [ ! -e "poreco.md" ];then
    touch "poreco.md"
    echo "# Fireealld change records" >> poreco.md
    echo "| Port | UTcp | Soft | Status |" >> poreco.md
    echo "|:----------:|:----------:|:----------:|:----------:|" >> poreco.md
fi

firewall-cmd --add-port=$1/$2 --permanent
echo "|$1|$2|$3|add|" >> poreco.md
firewall-cmd --reload
